How to see the permission of a user A and copy the same permission for user B in Azure AD |
您所在的位置:网站首页 › user center and permission › How to see the permission of a user A and copy the same permission for user B in Azure AD |
Hi @Mohd Arif , I understand you are trying to assign the same permission from one user to another. To get the permissions assigned to user A, you can leverage Graph API endpoint GET /roleManagement/directory/transitiveRoleAssignments?$filter=principalId eq '{principalId}' to get the list of direct and transitive objects (If a user is assigned an Azure AD role through group membership) for a specific principal and this request will list the group's ID as the principalId otherwise principalId is user's object id**.** Here roleDefinitionId are the roles assign to the user. Reference: https://learn.microsoft.com/en-us/graph/api/rbacapplication-list-transitiveroleassignments?view=graph-rest-beta&tabs=http You can check the role name using https://graph.microsoft.com/beta/roleManagement/directory/roleDefinitions and assign the same roles to another users using https://learn.microsoft.com/en-us/azure/active-directory/roles/manage-roles-portal#microsoft-graph-api https://learn.microsoft.com/en-us/azure/active-directory/roles/groups-assign-role?tabs=ms-powershell#microsoft-graph-api Hope this will help. Thanks, Shweta Please remember to "Accept Answer" if answer helped you. |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |